#include "DisplayManager.hpp"
#include "ObjectManager.hpp"

using namespace std;

int main() {
    ObjectManager obj_mgr;
    DisplayManager disp_mgr;
    bool even = false;

    obj_mgr.initObjects("./initial_state.conf"); // reads values from specified config file
    disp_mgr.init(&obj_mgr, 1000, 560, 0, 0);

    while (disp_mgr.isRunning()) {
        if (even ^= 1) disp_mgr.drawObjects(); // drawing every 2nd time is enough and speeds things up significantly
        obj_mgr.step();
    }

    return 0;
}
